<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<script type="text/javascript">
window.onload=init;
var i=0;
var id;
function init(){
	id=window.setInterval("change()",100);
	var a=document.links[0];
	var main=document.getElementById("main");
	main.onkeydown=key;
	//a.onmousedown=href;
}

function key(key){
	alert(key.keyCode);
}

function aler(){
	alert("abc");
}
function hre(){
	this.href="http://tu.duowan.com/m/bxgif";
	return false;
}
function change(){
	var img=document.getElementById("img");
	
	if(i<17)
	{
		img.src="images/mine"+i+".gif";
		i++;
	}
	else
	{
		window.clearInterval(id);
	}
}
</script>
</head>

<body id="main">
<img id="img" width="30px" height="30px" src="images/mine.gif" onclick="href()" />
<a href="http://www.baidu.com" onclick="hre()" target="_blank">百度</a>
<input type="text" value="abc" />
</body>
</html>
